@animus-ui/extract 0.1.20 → 0.1.22
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.
- package/crates/extract-v2/animus-extract-v2.darwin-arm64.node +0 -0
- package/crates/extract-v2/animus-extract-v2.linux-arm64-gnu.node +0 -0
- package/crates/extract-v2/animus-extract-v2.linux-x64-gnu.node +0 -0
- package/crates/extract-v2/index.d.ts +7 -0
- package/dist/index.cjs +3 -1
- package/dist/index.mjs +2 -2
- package/dist/pipeline/assemble-stylesheet.d.ts +5 -0
- package/dist/pipeline/assemble-stylesheet.d.ts.map +1 -1
- package/dist/pipeline/core-options.d.ts +2 -0
- package/dist/pipeline/core-options.d.ts.map +1 -1
- package/dist/pipeline/discover-packages.d.ts +15 -1
- package/dist/pipeline/discover-packages.d.ts.map +1 -1
- package/dist/pipeline/index.d.ts +3 -3
- package/dist/pipeline/index.d.ts.map +1 -1
- package/dist/pipeline/manifest-diagnostics.d.ts +18 -2
- package/dist/pipeline/manifest-diagnostics.d.ts.map +1 -1
- package/dist/pipeline/manifest-schema.d.ts +6 -0
- package/dist/pipeline/manifest-schema.d.ts.map +1 -1
- package/dist/pipeline/post-process-css.d.ts.map +1 -1
- package/dist/pipeline/property-diagnostics.d.ts +5 -4
- package/dist/pipeline/property-diagnostics.d.ts.map +1 -1
- package/dist/pipeline/property-names.d.ts +4 -14
- package/dist/pipeline/property-names.d.ts.map +1 -1
- package/dist/pipeline/property-registrations.d.ts +5 -4
- package/dist/pipeline/property-registrations.d.ts.map +1 -1
- package/dist/pipeline/structural-self-check.d.ts +3 -0
- package/dist/pipeline/structural-self-check.d.ts.map +1 -1
- package/dist/pipeline/tsconfig-paths.d.ts +14 -0
- package/dist/pipeline/tsconfig-paths.d.ts.map +1 -1
- package/dist/{pipeline-6wmD00rr.mjs → pipeline-BXY7Pf_D.mjs} +846 -528
- package/dist/{pipeline-A54wEQEg.cjs → pipeline-D7B1z0-1.cjs} +875 -527
- package/dist/session/extraction-session.d.ts +5 -0
- package/dist/session/extraction-session.d.ts.map +1 -1
- package/dist/session/index.d.ts +1 -1
- package/dist/session/index.d.ts.map +1 -1
- package/dist/session/resolve-packages.d.ts.map +1 -1
- package/dist/session/singleton.d.ts +5 -1
- package/dist/session/singleton.d.ts.map +1 -1
- package/dist/session.cjs +90 -3
- package/dist/session.mjs +91 -5
- package/package.json +4 -4
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -9,6 +9,13 @@ export declare class ExtractEngine {
|
|
|
9
9
|
transformFile(path: string): string
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
+
/**
|
|
13
|
+
* Every diagnostic code the engine emits, with the severity it carries, as
|
|
14
|
+
* JSON: `{ "animus.chain.unextractable": "warn", … }`. Hosts check codes
|
|
15
|
+
* against it instead of keeping a table of their own.
|
|
16
|
+
*/
|
|
17
|
+
export declare function diagnosticCodes(): string
|
|
18
|
+
|
|
12
19
|
/**
|
|
13
20
|
* Chain discovery over a file set: one parse per file, then one walk per
|
|
14
21
|
* stored AST.
|
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_pipeline = require("./pipeline-
|
|
2
|
+
const require_pipeline = require("./pipeline-D7B1z0-1.cjs");
|
|
3
3
|
exports.ANIMUS_LAYERS = require_pipeline.ANIMUS_LAYERS;
|
|
4
4
|
exports.AnimusConfigError = require_pipeline.AnimusConfigError;
|
|
5
5
|
exports.CORE_OPTION_KEYS = require_pipeline.CORE_OPTION_KEYS;
|
|
@@ -37,6 +37,7 @@ exports.createV2EngineApi = require_pipeline.createV2EngineApi;
|
|
|
37
37
|
exports.diffFilePlans = require_pipeline.diffFilePlans;
|
|
38
38
|
exports.discoverFiles = require_pipeline.discoverFiles;
|
|
39
39
|
exports.enforceExternalTokenContracts = require_pipeline.enforceExternalTokenContracts;
|
|
40
|
+
exports.engineImportParser = require_pipeline.engineImportParser;
|
|
40
41
|
exports.excludeCollectedPackages = require_pipeline.excludeCollectedPackages;
|
|
41
42
|
exports.extractSystemFilePackages = require_pipeline.extractSystemFilePackages;
|
|
42
43
|
exports.findAssetSpecifiers = require_pipeline.findAssetSpecifiers;
|
|
@@ -53,6 +54,7 @@ exports.isExcludedPackageRelativePath = require_pipeline.isExcludedPackageRelati
|
|
|
53
54
|
exports.isPathWithinRoot = require_pipeline.isPathWithinRoot;
|
|
54
55
|
exports.isUnresolvedParentDrop = require_pipeline.isUnresolvedParentDrop;
|
|
55
56
|
exports.loadSystemConfig = require_pipeline.loadSystemConfig;
|
|
57
|
+
exports.noKitFilesDiagnostics = require_pipeline.noKitFilesDiagnostics;
|
|
56
58
|
exports.parseFilesJson = require_pipeline.parseFilesJson;
|
|
57
59
|
exports.postProcessCss = require_pipeline.postProcessCss;
|
|
58
60
|
exports.preprocessMdx = require_pipeline.preprocessMdx;
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
export { ANIMUS_LAYERS, AnimusConfigError, CORE_OPTION_KEYS, DEFAULT_EXCLUDE, DEFAULT_EXTENSIONS, DRIVER_NAMESPACES, ENGINE_TRANSFORM_EXTENSIONS, INVALID_PROPERTY_REGISTRATION, REPLACEABLE_DEFAULT_EXCLUDE, RETIRED_ENGINE_MESSAGE, STRUCTURAL_EXCLUDE, VOCABULARY_COLLISION, VOCABULARY_LEGACY_VERB, adaptSvelteSource, applyPrefix, applyUnitFallback, assembleStylesheet, assertKnownOptionKeys, assertNoErrorDiagnostics, assertNoRetiredEngineSelection, buildAnalysisInputs, buildAnalyzeProjectArgs, buildDynamicPropConfig, buildPathAliasesJson, buildSystemPropsModule, camelToKebab, clearEngineCache, collectExternalPackageSources, compareDiscoveryOrder, contentHash, createExcludeMatcher, createSourceCorpus, createSourceIdentity, createV2EngineApi, diffFilePlans, discoverFiles, enforceExternalTokenContracts, excludeCollectedPackages, extractSystemFilePackages, findAssetSpecifiers, findPackageRoot, findSheetAssetSpecifiers, firstOwners, generatedModuleCode, hashReplacementPlans, ingestSourceEntries, isAdvisorySourceDiagnostic, isDeletedSource, isEngineTransformExtension, isExcludedPackageRelativePath, isPathWithinRoot, isUnresolvedParentDrop, loadSystemConfig, parseFilesJson, postProcessCss, preprocessMdx, projectExternalFileOwners, readTsconfigAliasPairs, reportSurvivingAssetPlaceholders, resolveAbsolutePathSpecifier, resolveAssetFile, resolveLightningTargets, resolveMode, resolveThroughPathAliases, resolveVerbosity, runProjectAnalysis, runStructuralSelfCheck, serializeStaticCss, sharesVolumeRoot, snapshotFilePlans, stableStringify, staleDistIncludesMessage, stripLeadingLayerDeclaration, substituteAssetPlaceholders, substituteSheetAssets, surfaceManifestDiagnostics, systemLoadDiagnostics, toWatchKeys, unreadableSourceDiagnostic, unresolvableIncludesMessage, unresolvedParentName, validateLayerOrder, vocabularyWitnessDiagnostics, walkPackageSources };
|
|
1
|
+
import { $ as DRIVER_NAMESPACES, A as createSourceCorpus, At as contentHash, B as unresolvableIncludesMessage, C as resolveThroughPathAliases, Ct as noKitFilesDiagnostics, D as reportSurvivingAssetPlaceholders, Dt as unresolvedParentName, E as generatedModuleCode, Et as unreadableSourceDiagnostic, F as findPackageRoot, Ft as validateLayerOrder, G as createSourceIdentity, I as firstOwners, J as compareDiscoveryOrder, K as isPathWithinRoot, L as isExcludedPackageRelativePath, M as engineImportParser, Mt as ANIMUS_LAYERS, N as excludeCollectedPackages, Nt as assembleStylesheet, O as substituteAssetPlaceholders, Ot as vocabularyWitnessDiagnostics, P as extractSystemFilePackages, Pt as stripLeadingLayerDeclaration, Q as DEFAULT_EXCLUDE, R as resolveAbsolutePathSpecifier, S as resolveAssetFile, St as isUnresolvedParentDrop, T as findSheetAssetSpecifiers, Tt as systemLoadDiagnostics, V as walkPackageSources, W as readTsconfigAliasPairs, X as AnimusConfigError, Y as discoverFiles, Z as CORE_OPTION_KEYS, _ as applyUnitFallback, _t as preprocessMdx, a as assertNoErrorDiagnostics, at as resolveVerbosity, b as buildPathAliasesJson, bt as VOCABULARY_LEGACY_VERB, c as runStructuralSelfCheck, ct as createV2EngineApi, d as serializeStaticCss, dt as parseFilesJson, et as REPLACEABLE_DEFAULT_EXCLUDE, f as camelToKebab, ft as projectExternalFileOwners, g as runProjectAnalysis, gt as isEngineTransformExtension, h as clearEngineCache, ht as ENGINE_TRANSFORM_EXTENSIONS, i as snapshotFilePlans, it as resolveMode, j as collectExternalPackageSources, jt as buildAnalyzeProjectArgs, k as substituteSheetAssets, l as loadSystemConfig, lt as ingestSourceEntries, m as buildAnalysisInputs, mt as DEFAULT_EXTENSIONS, n as diffFilePlans, nt as assertKnownOptionKeys, o as buildSystemPropsModule, ot as RETIRED_ENGINE_MESSAGE, p as stableStringify, pt as adaptSvelteSource, q as sharesVolumeRoot, r as hashReplacementPlans, rt as createExcludeMatcher, s as buildDynamicPropConfig, st as assertNoRetiredEngineSelection, t as toWatchKeys, tt as STRUCTURAL_EXCLUDE, u as applyPrefix, ut as isAdvisorySourceDiagnostic, v as postProcessCss, vt as INVALID_PROPERTY_REGISTRATION, w as findAssetSpecifiers, wt as surfaceManifestDiagnostics, x as enforceExternalTokenContracts, xt as isDeletedSource, y as resolveLightningTargets, yt as VOCABULARY_COLLISION, z as staleDistIncludesMessage } from "./pipeline-BXY7Pf_D.mjs";
|
|
2
|
+
export { ANIMUS_LAYERS, AnimusConfigError, CORE_OPTION_KEYS, DEFAULT_EXCLUDE, DEFAULT_EXTENSIONS, DRIVER_NAMESPACES, ENGINE_TRANSFORM_EXTENSIONS, INVALID_PROPERTY_REGISTRATION, REPLACEABLE_DEFAULT_EXCLUDE, RETIRED_ENGINE_MESSAGE, STRUCTURAL_EXCLUDE, VOCABULARY_COLLISION, VOCABULARY_LEGACY_VERB, adaptSvelteSource, applyPrefix, applyUnitFallback, assembleStylesheet, assertKnownOptionKeys, assertNoErrorDiagnostics, assertNoRetiredEngineSelection, buildAnalysisInputs, buildAnalyzeProjectArgs, buildDynamicPropConfig, buildPathAliasesJson, buildSystemPropsModule, camelToKebab, clearEngineCache, collectExternalPackageSources, compareDiscoveryOrder, contentHash, createExcludeMatcher, createSourceCorpus, createSourceIdentity, createV2EngineApi, diffFilePlans, discoverFiles, enforceExternalTokenContracts, engineImportParser, excludeCollectedPackages, extractSystemFilePackages, findAssetSpecifiers, findPackageRoot, findSheetAssetSpecifiers, firstOwners, generatedModuleCode, hashReplacementPlans, ingestSourceEntries, isAdvisorySourceDiagnostic, isDeletedSource, isEngineTransformExtension, isExcludedPackageRelativePath, isPathWithinRoot, isUnresolvedParentDrop, loadSystemConfig, noKitFilesDiagnostics, parseFilesJson, postProcessCss, preprocessMdx, projectExternalFileOwners, readTsconfigAliasPairs, reportSurvivingAssetPlaceholders, resolveAbsolutePathSpecifier, resolveAssetFile, resolveLightningTargets, resolveMode, resolveThroughPathAliases, resolveVerbosity, runProjectAnalysis, runStructuralSelfCheck, serializeStaticCss, sharesVolumeRoot, snapshotFilePlans, stableStringify, staleDistIncludesMessage, stripLeadingLayerDeclaration, substituteAssetPlaceholders, substituteSheetAssets, surfaceManifestDiagnostics, systemLoadDiagnostics, toWatchKeys, unreadableSourceDiagnostic, unresolvableIncludesMessage, unresolvedParentName, validateLayerOrder, vocabularyWitnessDiagnostics, walkPackageSources };
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The cascade layer order, outermost first: its one definition. The engine
|
|
3
|
+
* reads it from `crates/extract-v2/src/layer_order.json`, which
|
|
4
|
+
* `scripts/layer-order.ts --write` writes from here.
|
|
5
|
+
*/
|
|
1
6
|
export declare const ANIMUS_LAYERS: readonly ['anm-global', 'anm-base', 'anm-variants', 'anm-compounds', 'anm-states', 'anm-system', 'anm-custom'];
|
|
2
7
|
export declare function validateLayerOrder(layers: string[]): void;
|
|
3
8
|
export declare function stripLeadingLayerDeclaration(css: string): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assemble-stylesheet.d.ts","sourceRoot":"","sources":["../../pipeline/assemble-stylesheet.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,YACxB,YAAY,EACZ,UAAU,EACV,cAAc,EACd,eAAe,EACf,YAAY,EACZ,YAAY,EACZ,YAAY,CACJ,CAAC;AAUX,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,CA2BzD;AAED,wBAAgB,4BAA4B,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEhE;AAED,MAAM,WAAW,uBAAuB;IACtC,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,yBAAyB;IACxC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,yBAAyB,GAAG;IAAE,KAAK,EAAE,IAAI,CAAA;CAAE,GACnD,uBAAuB,CAAC;AAC3B,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,yBAAyB,GAAG;IAAE,KAAK,CAAC,EAAE,KAAK,CAAA;CAAE,GACrD,MAAM,CAAC;AACV,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,yBAAyB,GACjC,MAAM,GAAG,uBAAuB,CAAC"}
|
|
1
|
+
{"version":3,"file":"assemble-stylesheet.d.ts","sourceRoot":"","sources":["../../pipeline/assemble-stylesheet.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,aAAa,YACxB,YAAY,EACZ,UAAU,EACV,cAAc,EACd,eAAe,EACf,YAAY,EACZ,YAAY,EACZ,YAAY,CACJ,CAAC;AAUX,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,CA2BzD;AAED,wBAAgB,4BAA4B,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEhE;AAED,MAAM,WAAW,uBAAuB;IACtC,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,yBAAyB;IACxC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,yBAAyB,GAAG;IAAE,KAAK,EAAE,IAAI,CAAA;CAAE,GACnD,uBAAuB,CAAC;AAC3B,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,yBAAyB,GAAG;IAAE,KAAK,CAAC,EAAE,KAAK,CAAA;CAAE,GACrD,MAAM,CAAC;AACV,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,yBAAyB,GACjC,MAAM,GAAG,uBAAuB,CAAC"}
|
|
@@ -93,6 +93,8 @@ export interface ExcludeMatcher {
|
|
|
93
93
|
matches(fullPath: string, relativePath: string): boolean;
|
|
94
94
|
explain(fullPath: string, relativePath: string): string | null;
|
|
95
95
|
}
|
|
96
|
+
/** Minimal glob → RegExp: `**` spans segments, `*`/`?` stay within one. */
|
|
97
|
+
export declare function globToRegExp(glob: string): RegExp;
|
|
96
98
|
/**
|
|
97
99
|
* A user list replaces only the replaceable defaults. Driver-owned
|
|
98
100
|
* invariants belong in `extraStructural`; a user list would replace those.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core-options.d.ts","sourceRoot":"","sources":["../../pipeline/core-options.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,eAAe,EAA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AAC;CAChE;AA8BD,2EAA2E;AAC3E,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CA4BjD;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAClC,YAAY,CAAC,EAAE,SAAS,MAAM,EAAE,EAChC,eAAe,GAAE,SAAS,MAAM,EAAO,GACtC,cAAc,CA2BhB;AAED,sEAAsE;AACtE,MAAM,MAAM,gBAAgB,GAAG,UAAU,GAAG,gBAAgB,GAAG,SAAS,CAAC;AAEzE,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,UAAU,CAAC;IACjB,UAAU,EAAE,gBAAgB,CAAC;CAC9B;AAED,wBAAgB,WAAW,CACzB,QAAQ,EAAE,UAAU,GAAG,SAAS,EAChC,aAAa,EAAE,MAAM,UAAU,GAC9B,YAAY,CAKd"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { EngineApi } from './engine-adapter';
|
|
2
|
+
import type { ExtractImportFact } from './source-ingestion';
|
|
1
3
|
export declare function findPackageRoot(absEntryPath: string): string;
|
|
2
4
|
export declare const PACKAGE_SRC_EXCLUDES: string[];
|
|
3
5
|
export declare function isExcludedPackageRelativePath(rel: string): boolean;
|
|
@@ -17,6 +19,12 @@ export interface CollectedExternalPackages {
|
|
|
17
19
|
/** specifier → rootDir-relative module-resolution entry. */
|
|
18
20
|
packageMap: Record<string, string>;
|
|
19
21
|
sourceEntries: Map<string, string>;
|
|
22
|
+
/** specifier → its source entry's side effects, from the owning package's
|
|
23
|
+
* `sideEffects`. The source entry stands in for the entry it replaces, so
|
|
24
|
+
* either path matching a listed glob keeps side effects, and a list with
|
|
25
|
+
* no replaced entry to carry keeps them too. Absent when the package
|
|
26
|
+
* declares nothing. */
|
|
27
|
+
sourceEntrySideEffects: Map<string, boolean>;
|
|
20
28
|
/** Absolute directories for bundler loader allowlisting. */
|
|
21
29
|
packageDirs: string[];
|
|
22
30
|
/** Absolute package dir → every declared specifier that claimed it, in
|
|
@@ -51,5 +59,11 @@ export declare function unresolvableIncludesMessage(outcomes: ExternalPackageOut
|
|
|
51
59
|
/** A stale dist silently skews merged registry content while discovery
|
|
52
60
|
* compiles the fresh sources; null when no specifier is stale. */
|
|
53
61
|
export declare function staleDistIncludesMessage(outcomes: ExternalPackageOutcome[]): string | null;
|
|
54
|
-
|
|
62
|
+
/** A module's parsed import bindings, or null when it cannot be parsed. */
|
|
63
|
+
export type ImportParser = (source: string, path: string) => readonly ExtractImportFact[] | null;
|
|
64
|
+
/** The engine's own parse of a module's imports, through its
|
|
65
|
+
* `extractFacts`; undefined for an engine without one. A parse that
|
|
66
|
+
* panicked reports no imports, so it counts as no parse. */
|
|
67
|
+
export declare function engineImportParser(engine: Pick<EngineApi, 'extractFacts'>): ImportParser | undefined;
|
|
68
|
+
export declare function extractSystemFilePackages(systemFilePath: string, parseImports?: ImportParser): string[];
|
|
55
69
|
//# sourceMappingURL=discover-packages.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"discover-packages.d.ts","sourceRoot":"","sources":["../../pipeline/discover-packages.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"discover-packages.d.ts","sourceRoot":"","sources":["../../pipeline/discover-packages.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,EAAsB,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAGhF,wBAAgB,eAAe,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAS5D;AAED,eAAO,MAAM,oBAAoB,UAKhC,CAAC;AAEF,wBAAgB,6BAA6B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAElE;AAED,wBAAgB,kBAAkB,CAChC,UAAU,EAAE,MAAM,EAClB,aAAa,EAAE,WAAW,CAAC,MAAM,CAAC,GACjC,MAAM,EAAE,CAIV;AAUD,MAAM,WAAW,sBAAsB;IACrC,SAAS,EAAE,MAAM,CAAC;IA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C1B,MAAM,EAAE,CA4UV"}
|
package/dist/pipeline/index.d.ts
CHANGED
|
@@ -9,8 +9,8 @@ export { contentHash } from './content-hash';
|
|
|
9
9
|
export type { AnimusCoreOptions, AnimusMode, DriverNamespace, ExcludeMatcher, OptionProvenance, ResolvedMode, Verbosity, } from './core-options';
|
|
10
10
|
export { AnimusConfigError, assertKnownOptionKeys, CORE_OPTION_KEYS, createExcludeMatcher, DEFAULT_EXCLUDE, DRIVER_NAMESPACES, REPLACEABLE_DEFAULT_EXCLUDE, STRUCTURAL_EXCLUDE, resolveMode, resolveVerbosity, } from './core-options';
|
|
11
11
|
export { compareDiscoveryOrder, discoverFiles } from './discover-files';
|
|
12
|
-
export type { CollectedExternalPackages, ExternalPackageOutcome, } from './discover-packages';
|
|
13
|
-
export { collectExternalPackageSources, excludeCollectedPackages, extractSystemFilePackages, findPackageRoot, firstOwners, isExcludedPackageRelativePath, resolveAbsolutePathSpecifier, staleDistIncludesMessage, unresolvableIncludesMessage, walkPackageSources, } from './discover-packages';
|
|
12
|
+
export type { CollectedExternalPackages, ExternalPackageOutcome, ImportParser, } from './discover-packages';
|
|
13
|
+
export { collectExternalPackageSources, engineImportParser, excludeCollectedPackages, extractSystemFilePackages, findPackageRoot, firstOwners, isExcludedPackageRelativePath, resolveAbsolutePathSpecifier, staleDistIncludesMessage, unresolvableIncludesMessage, walkPackageSources, } from './discover-packages';
|
|
14
14
|
export type { ResolvedSourceId, SourceIdentity } from './source-identity';
|
|
15
15
|
export { createSourceIdentity, isPathWithinRoot, sharesVolumeRoot, } from './source-identity';
|
|
16
16
|
export type { AdaptSvelteSourceResult, AdaptSvelteSourceOptions, SourceLocation, SourcePosition, SourceSpan, SvelteAdapterDiagnostic, SvelteOriginMapping, SvelteOriginMappingKind, SvelteResolverAccess, SvelteResolverAttribution, SvelteResolverAttributionRequest, SvelteResolverImportKind, SvelteScriptScope, SvelteSourceOrigin, SvelteVirtualEntry, } from './svelte-source-adapter';
|
|
@@ -43,7 +43,7 @@ export type { CssDiagnosticLike } from './error-diagnostics';
|
|
|
43
43
|
export { assertNoErrorDiagnostics } from './error-diagnostics';
|
|
44
44
|
export type { ManifestComponentDescriptor, ManifestComponentSheets, ManifestSheets, ProjectManifest, } from './manifest-schema';
|
|
45
45
|
export type { ManifestDiagnostic } from './manifest-diagnostics';
|
|
46
|
-
export { INVALID_PROPERTY_REGISTRATION, isUnresolvedParentDrop, surfaceManifestDiagnostics, isDeletedSource, unreadableSourceDiagnostic, unresolvedParentName, VOCABULARY_COLLISION, VOCABULARY_LEGACY_VERB, systemLoadDiagnostics, vocabularyWitnessDiagnostics, } from './manifest-diagnostics';
|
|
46
|
+
export { INVALID_PROPERTY_REGISTRATION, isUnresolvedParentDrop, surfaceManifestDiagnostics, isDeletedSource, noKitFilesDiagnostics, unreadableSourceDiagnostic, unresolvedParentName, VOCABULARY_COLLISION, VOCABULARY_LEGACY_VERB, systemLoadDiagnostics, vocabularyWitnessDiagnostics, } from './manifest-diagnostics';
|
|
47
47
|
export type { DefaultExtension, PreprocessMdxResult } from './mdx-preprocessor';
|
|
48
48
|
export { DEFAULT_EXTENSIONS, ENGINE_TRANSFORM_EXTENSIONS, isEngineTransformExtension, preprocessMdx, } from './mdx-preprocessor';
|
|
49
49
|
export { applyPrefix } from './prefix';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../pipeline/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,yBAAyB,EACzB,uBAAuB,GACxB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,aAAa,EACb,kBAAkB,EAClB,4BAA4B,EAC5B,kBAAkB,GACnB,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EACV,kBAAkB,EAClB,oBAAoB,GACrB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AACjE,YAAY,EACV,SAAS,EACT,mBAAmB,EACnB,mBAAmB,EACnB,kBAAkB,EAClB,eAAe,GAChB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EACL,8BAA8B,EAC9B,sBAAsB,GACvB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,YAAY,EACV,iBAAiB,EACjB,UAAU,EACV,eAAe,EACf,cAAc,EACd,gBAAgB,EAChB,YAAY,EACZ,SAAS,GACV,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,iBAAiB,EACjB,qBAAqB,EACrB,gBAAgB,EAChB,oBAAoB,EACpB,eAAe,EACf,iBAAiB,EACjB,2BAA2B,EAC3B,kBAAkB,EAClB,WAAW,EACX,gBAAgB,GACjB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,qBAAqB,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACxE,YAAY,EACV,yBAAyB,EACzB,sBAAsB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../pipeline/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,yBAAyB,EACzB,uBAAuB,GACxB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,aAAa,EACb,kBAAkB,EAClB,4BAA4B,EAC5B,kBAAkB,GACnB,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EACV,kBAAkB,EAClB,oBAAoB,GACrB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AACjE,YAAY,EACV,SAAS,EACT,mBAAmB,EACnB,mBAAmB,EACnB,kBAAkB,EAClB,eAAe,GAChB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EACL,8BAA8B,EAC9B,sBAAsB,GACvB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,W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,YAAY,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ExternalPackageOutcome } from './discover-packages';
|
|
1
2
|
import type { SystemConfig } from './system-config';
|
|
2
3
|
export type ManifestDiagnostic = {
|
|
3
4
|
file: string;
|
|
@@ -37,6 +38,8 @@ export declare function hasSelectorSubject(value: string): boolean;
|
|
|
37
38
|
*/
|
|
38
39
|
export declare function collectSelectorAliasDiagnostics(selectorAliasesJson: string | null | undefined): ManifestDiagnostic[];
|
|
39
40
|
export declare const UNREADABLE_SOURCE_FILE = "animus.ingestion.unreadable-source-file";
|
|
41
|
+
/** A kit the system extends resolved, yet discovery found none of its files. */
|
|
42
|
+
export declare const NO_KIT_FILES = "animus.discovery.no-kit-files";
|
|
40
43
|
/** What a skipped source file costs: the analysis never sees what it
|
|
41
44
|
* renders. */
|
|
42
45
|
export declare const SKIPPED_SOURCE_COST = "skipped: its renders are not seen, so nothing is pruned and every component, variant option and state is kept until it is analyzed";
|
|
@@ -49,6 +52,9 @@ export declare const SKIPPED_SOURCE_COST = "skipped: its renders are not seen, s
|
|
|
49
52
|
* input. */
|
|
50
53
|
export declare function isDeletedSource<Thrown>(error: Thrown): boolean;
|
|
51
54
|
export declare function unreadableSourceDiagnostic<Thrown>(relPath: string, error: Thrown): ManifestDiagnostic;
|
|
55
|
+
/** One warning per kit the system extends that resolved, yet yielded no
|
|
56
|
+
* files: none of its components are extracted. */
|
|
57
|
+
export declare function noKitFilesDiagnostics(outcomes: readonly ExternalPackageOutcome[]): ManifestDiagnostic[];
|
|
52
58
|
/** The collision entry code minted by the system package's merge. */
|
|
53
59
|
export declare const VOCABULARY_COLLISION = "animus.vocabulary.collision";
|
|
54
60
|
/** A theme `@property` registration browsers would ignore; it is not emitted. */
|
|
@@ -68,14 +74,24 @@ export declare const PROPERTY_UNREGISTERED_ANIMATION = "animus.property.unregist
|
|
|
68
74
|
* it invalid at computed-value time. */
|
|
69
75
|
export declare const PROPERTY_SELF_REFERENCE = "animus.property.self-reference";
|
|
70
76
|
/** A custom property that reads itself only inside another `var()`'s
|
|
71
|
-
* fallback
|
|
77
|
+
* fallback: cyclic wherever that fallback is used. */
|
|
72
78
|
export declare const PROPERTY_FALLBACK_SELF_REFERENCE = "animus.property.fallback-self-reference";
|
|
79
|
+
/** Custom properties that `currentVar` writes in one rule, each reading
|
|
80
|
+
* another directly, so every property in the cycle is invalid at
|
|
81
|
+
* computed-value time. */
|
|
82
|
+
export declare const PROPERTY_CURRENT_VAR_CYCLE = "animus.property.current-var-cycle";
|
|
73
83
|
/** A prefix renamed contextual variables without `prefixContextualVars`, so
|
|
74
84
|
* their declared names no longer resolve. */
|
|
75
85
|
export declare const PREFIX_CONTEXTUAL_VARS_UNPREFIXED = "animus.prefix.contextual-vars-unprefixed";
|
|
76
86
|
/** Under `prefixContextualVars`, a final name that collides with a runtime
|
|
77
87
|
* transport variable or a theme variable of the same spelling. */
|
|
78
88
|
export declare const PREFIX_NAME_CONFLICT = "animus.prefix.name-conflict";
|
|
89
|
+
/** A contextual variable declared on a scale that also holds a token of its
|
|
90
|
+
* name: scale reads resolve to the token. */
|
|
91
|
+
export declare const PROPERTY_LEGACY_TOKEN_COLLISION = "animus.property.legacy-token-collision";
|
|
92
|
+
/** A theme property declared on a scale that also holds a token of its
|
|
93
|
+
* name. */
|
|
94
|
+
export declare const PROPERTY_TOKEN_COLLISION = "animus.property.token-collision";
|
|
79
95
|
/**
|
|
80
96
|
* A lost or unreadable configured input, or a classified unsupported Animus
|
|
81
97
|
* declaration, is `error` — what `--strict` refuses; degradation that still
|
|
@@ -92,7 +108,7 @@ export declare function severityFor(code: string | undefined): DiagnosticSeverit
|
|
|
92
108
|
export declare function vocabularyWitnessDiagnostics(vocabularyWitnessesJson: string | null | undefined): ManifestDiagnostic[];
|
|
93
109
|
/** The diagnostics a loaded system's own records carry: vocabulary
|
|
94
110
|
* witnesses and invalid `@property` registrations. */
|
|
95
|
-
export declare function systemLoadDiagnostics(system: Pick<SystemConfig, 'vocabularyWitnessesJson' | 'invalidPropertyRegistrations' | 'legacyPrefixedContextualVars' | 'prefixNameConflicts'>): ManifestDiagnostic[];
|
|
111
|
+
export declare function systemLoadDiagnostics(system: Pick<SystemConfig, 'vocabularyWitnessesJson' | 'invalidPropertyRegistrations' | 'legacyPrefixedContextualVars' | 'prefixNameConflicts' | 'scalesJson' | 'propertyRecordsJson'>): ManifestDiagnostic[];
|
|
96
112
|
/**
|
|
97
113
|
* The single strict-escalation policy point for both extraction plugins:
|
|
98
114
|
* error-severity diagnostics throw together under `strict`, else warn.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manifest-diagnostics.d.ts","sourceRoot":"","sources":["../../pipeline/manifest-diagnostics.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEpD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB;kDAC8C;IAC9C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;eAIW;IACX,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;+CAC+C;AAC/C,eAAO,MAAM,4BAA4B,wCACF,CAAC;AAOxC,KAAK,iBAAiB,GAAG,IAAI,CAAC,kBAAkB,EAAE,SAAS,CAAC,CAAC;AAE7D,wBAAgB,sBAAsB,CAAC,UAAU,EAAE,iBAAiB,GAAG,OAAO,CAE7E;AAED,wBAAgB,oBAAoB,CAClC,UAAU,EAAE,iBAAiB,GAC5B,MAAM,GAAG,IAAI,CAEf;AAED,MAAM,WAAW,gBAAgB;IAC/B,sEAAsE;IACtE,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,kBAAkB,EAAE,CAAC;IAC/B,qEAAqE;IACrE,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CAClC;AAED;2BAC2B;AAC3B,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAqBzD;AAED;;;GAGG;AACH,wBAAgB,+BAA+B,CAC7C,mBAAmB,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAC7C,kBAAkB,EAAE,CAsBtB;AAED,eAAO,MAAM,sBAAsB,4CAA4C,CAAC;AAEhF;eACe;AACf,eAAO,MAAM,mBAAmB,uIACsG,CAAC;AAEvI;;;GAGG;AACH;;aAEa;AACb,wBAAgB,eAAe,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAI9D;AAED,wBAAgB,0BAA0B,CAAC,MAAM,EAC/C,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,MAAM,GACZ,kBAAkB,CASpB;AAED,qEAAqE;AACrE,eAAO,MAAM,oBAAoB,gCAAgC,CAAC;AAElE,iFAAiF;AACjF,eAAO,MAAM,6BAA6B,+CACI,CAAC;AAE/C;iDACiD;AACjD,eAAO,MAAM,sBAAsB,kCAAkC,CAAC;AAEtE;qBACqB;AACrB,eAAO,MAAM,4BAA4B,wCACF,CAAC;AAExC,2EAA2E;AAC3E,eAAO,MAAM,kCAAkC,8CACF,CAAC;AAE9C;gDACgD;AAChD,eAAO,MAAM,+BAA+B,2CACF,CAAC;AAE3C;yCACyC;AACzC,eAAO,MAAM,uBAAuB,mCAAmC,CAAC;AAExE;
|
|
1
|
+
{"version":3,"file":"manifest-diagnostics.d.ts","sourceRoot":"","sources":["../../pipeline/manifest-diagnostics.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAClE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,i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BAAgB,qBAAqB,CACnC,MAAM,EAAE,IAAI,CACV,YAAY,EACV,yBAAyB,GACzB,8BAA8B,GAC9B,8BAA8B,GAC9B,qBAAqB,GACrB,YAAY,GACZ,qBAAqB,CACxB,GACA,kBAAkB,EAAE,CA+CtB;AAgDD;;;GAGG;AACH,wBAAgB,0BAA0B,CACxC,QAAQ,EAAE;IAAE,WAAW,CAAC,EAAE,kBAAkB,EAAE,CAAA;CAAE,EAChD,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,EAC/B,MAAM,GAAE,gBAAqB,GAC5B,IAAI,CAoCN"}
|
|
@@ -32,6 +32,12 @@ export interface ManifestComponentSheets {
|
|
|
32
32
|
variants?: string;
|
|
33
33
|
compounds?: string;
|
|
34
34
|
states?: string;
|
|
35
|
+
/** A compose family's rules for this child slot, emitted in the variants
|
|
36
|
+
* layer's `composed` sublayer. */
|
|
37
|
+
composed_variants?: string;
|
|
38
|
+
/** A compose family's rules for this child slot, emitted after the flat
|
|
39
|
+
* compound rules. */
|
|
40
|
+
composed_compounds?: string;
|
|
35
41
|
}
|
|
36
42
|
/** Byte offsets into the source file. */
|
|
37
43
|
export interface ManifestUsageSpan {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manifest-schema.d.ts","sourceRoot":"","sources":["../../pipeline/manifest-schema.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE3D,MAAM,WAAW,2BAA2B;IAC1C,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,+CAA+C;IAC/C,QAAQ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MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;IAC/C;;4CAEwC;IACxC,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC5C;iEAC6D;IAC7D,kBAAkB,EAAE,MAAM,EAAE,CAAC;IAC7B,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,uBAAuB,CAAC,CAAC;IAC7D,iDAAiD;IACjD,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IAC7C,mDAAmD;IACnD,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,2BAA2B,CAAC,CAAC;IACxD,gDAAgD;IAChD,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IAChC,MAAM,EAAE,cAAc,CAAC;CACxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"post-process-css.d.ts","sourceRoot":"","sources":["../../pipeline/post-process-css.ts"],"names":[],"mappings":"AACA,OAAO,EACL,qBAAqB,EAEtB,MAAM,cAAc,CAAC;AAEtB,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAExE,wBAAgB,uBAAuB,CACrC,eAAe,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,EAC9C,OAAO,EAAE,MAAM,GACd,gBAAgB,
|
|
1
|
+
{"version":3,"file":"post-process-css.d.ts","sourceRoot":"","sources":["../../pipeline/post-process-css.ts"],"names":[],"mappings":"AACA,OAAO,EACL,qBAAqB,EAEtB,MAAM,cAAc,CAAC;AAEtB,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAExE,wBAAgB,uBAAuB,CACrC,eAAe,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,EAC9C,OAAO,EAAE,MAAM,GACd,gBAAgB,CAUlB;AAED,wBAAgB,cAAc,CAC5B,GAAG,EAAE,MAAM,EACX,IAAI,EAAE;IACJ,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,gBAAgB,CAAC;IAC1B,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;CAChC,GACA,MAAM,CAiBR"}
|
|
@@ -2,7 +2,7 @@ import type { ManifestDiagnostic } from './manifest-diagnostics';
|
|
|
2
2
|
import type { ProjectManifest } from './manifest-schema';
|
|
3
3
|
import type { SystemConfig } from './system-config';
|
|
4
4
|
export interface CustomPropertyCheckInput {
|
|
5
|
-
system: Pick<SystemConfig, 'variableCss' | 'contextualProperties'
|
|
5
|
+
system: Pick<SystemConfig, 'variableCss' | 'contextualProperties'> & Partial<Pick<SystemConfig, 'propConfigJson'>>;
|
|
6
6
|
manifest: Pick<ProjectManifest, 'components'>;
|
|
7
7
|
componentCss: string;
|
|
8
8
|
globalCss: string;
|
|
@@ -10,9 +10,10 @@ export interface CustomPropertyCheckInput {
|
|
|
10
10
|
/**
|
|
11
11
|
* Reports custom properties that will not behave as their CSS suggests: a
|
|
12
12
|
* property that refers to itself, a fallback a registered initial value
|
|
13
|
-
* applies ahead of, and an animated property that cannot interpolate.
|
|
14
|
-
* are read
|
|
15
|
-
*
|
|
13
|
+
* applies ahead of, and an animated property that cannot interpolate. Sheets
|
|
14
|
+
* are read through the shared CSS tokenizer, as the prefix pass reads them:
|
|
15
|
+
* comments are trivia, quoted text holds no names, and escapes and function
|
|
16
|
+
* case are decoded. The CSS itself is never changed.
|
|
16
17
|
*/
|
|
17
18
|
export declare function checkCustomProperties(input: CustomPropertyCheckInput): ManifestDiagnostic[];
|
|
18
19
|
//# sourceMappingURL=property-diagnostics.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"property-diagnostics.d.ts","sourceRoot":"","sources":["../../pipeline/property-diagnostics.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"property-diagnostics.d.ts","sourceRoot":"","sources":["../../pipeline/property-diagnostics.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAOpD,MAAM,WAAW,wBAAwB;IACvC,MAAM,EAAE,IAAI,CAAC,YAAY,EAAE,aAAa,GAAG,sBAAsB,CAAC,GAChE,OAAO,CAAC,IAAI,CAAC,YAAY,EAAE,gBAAgB,CAAC,CAAC,CAAC;IAChD,QAAQ,EAAE,IAAI,CAAC,eAAe,EAAE,YAAY,CAAC,CAAC;IAC9C,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;CACnB;AAwBD;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,wBAAwB,GAC9B,kBAAkB,EAAE,CAwGtB"}
|
|
@@ -19,24 +19,14 @@ export interface PropertyNames {
|
|
|
19
19
|
}>;
|
|
20
20
|
}
|
|
21
21
|
export declare function createPropertyNames(declared: Iterable<string>, prefix: string, themeNames?: Iterable<string>): PropertyNames;
|
|
22
|
-
/** A name read from CSS: the index after it, and the name with its escapes
|
|
23
|
-
* decoded. */
|
|
24
|
-
export interface ReadName {
|
|
25
|
-
end: number;
|
|
26
|
-
name: string;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* The name starting at `from`, read as CSS tokenizes an identifier: ASCII
|
|
30
|
-
* letters, digits, `-` and `_`, every non-ASCII code point, and escapes.
|
|
31
|
-
*/
|
|
32
|
-
export declare function readCustomPropertyName(css: string, from: number): ReadName;
|
|
33
22
|
/**
|
|
34
23
|
* Gives every custom-property token that names a managed property its final
|
|
35
24
|
* name, in one pass: declaration keys, `var()` reads at any depth (fallbacks
|
|
36
25
|
* included), `@property` names, transition-property lists and style queries.
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
26
|
+
* Names are read through the shared CSS tokenizer, whole and with escapes
|
|
27
|
+
* decoded, escaped leading dashes included, so an undeclared identifier that
|
|
28
|
+
* contains or starts with a managed name is never renamed in part. Quoted
|
|
29
|
+
* strings, `url()` and comments are copied unchanged.
|
|
40
30
|
*/
|
|
41
31
|
export declare function renameCustomProperties(css: string, names: PropertyNames): string;
|
|
42
32
|
//# sourceMappingURL=property-names.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"property-names.d.ts","sourceRoot":"","sources":["../../pipeline/property-names.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"property-names.d.ts","sourceRoot":"","sources":["../../pipeline/property-names.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AACH,MAAM,WAAW,aAAa;IAC5B,0EAA0E;IAC1E,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;IAC/C,qEAAqE;IACrE,SAAS,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;IAChD,wEAAwE;IACxE,SAAS,IAAI,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAC1D;AAED,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,QAAQ,CAAC,MAAM,CAAC,EAC1B,MAAM,EAAE,MAAM,EACd,UAAU,GAAE,QAAQ,CAAC,MAAM,CAAM,GAChC,aAAa,CAyBf;AAED;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CACpC,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,aAAa,GACnB,MAAM,CAeR"}
|
|
@@ -6,10 +6,11 @@ export interface InvalidPropertyRegistration {
|
|
|
6
6
|
/**
|
|
7
7
|
* Removes the `@property` rules browsers would ignore — an unknown syntax
|
|
8
8
|
* component, a syntax other than `*` without an initial value, an initial
|
|
9
|
-
* value that substitutes another value or depends on context,
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* computed value, which
|
|
9
|
+
* value that substitutes another value or depends on context, math that
|
|
10
|
+
* breaks calculation syntax, or a value the syntax does not accept.
|
|
11
|
+
* Minifying a stylesheet that contains such a rule can also fail. An
|
|
12
|
+
* all-absolute math initial value is written as its computed value, which
|
|
13
|
+
* the minifier reads.
|
|
13
14
|
*/
|
|
14
15
|
export declare function splitInvalidPropertyRegistrations(css: string): {
|
|
15
16
|
css: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"property-registrations.d.ts","sourceRoot":"","sources":["../../pipeline/property-registrations.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"property-registrations.d.ts","sourceRoot":"","sources":["../../pipeline/property-registrations.ts"],"names":[],"mappings":"AAUA,mEAAmE;AACnE,MAAM,WAAW,2BAA2B;IAC1C,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB;AAqDD;;;;;;;;GAQG;AACH,wBAAgB,iCAAiC,CAAC,GAAG,EAAE,MAAM;;;EAY5D;AAED,8CAA8C;AAC9C,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,GAAG,SAAS,CAAC;CAClC;AAED,2DAA2D;AAC3D,wBAAgB,qBAAqB,CACnC,GAAG,EAAE,MAAM,GACV,GAAG,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAMnC"}
|
|
@@ -7,6 +7,9 @@ export interface StructuralCheckInput {
|
|
|
7
7
|
layers?: string[];
|
|
8
8
|
assembledCss?: string;
|
|
9
9
|
externalOutcomes?: readonly ExternalPackageOutcome[];
|
|
10
|
+
/** The loaded theme's token → variable map. A theme that declares no
|
|
11
|
+
* variables emits no `:root` block; without the map, one is required. */
|
|
12
|
+
variableMapJson?: string | null;
|
|
10
13
|
}
|
|
11
14
|
export declare function runStructuralSelfCheck(input: StructuralCheckInput): string[];
|
|
12
15
|
//# sourceMappingURL=structural-self-check.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"structural-self-check.d.ts","sourceRoot":"","sources":["../../pipeline/structural-self-check.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"structural-self-check.d.ts","sourceRoot":"","sources":["../../pipeline/structural-self-check.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAElE,MAAM,WAAW,oBAAoB;IACnC,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gBAAgB,CAAC,EAAE,SAAS,sBAAsB,EAAE,CAAC;IACrD;8EAC0E;IAC1E,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACjC;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,oBAAoB,GAAG,MAAM,EAAE,CAgF5E"}
|
|
@@ -1,4 +1,18 @@
|
|
|
1
1
|
import type { PathAliasPair } from './path-aliases';
|
|
2
|
+
/**
|
|
3
|
+
* Exactly what `JSON.parse` produces for a consumer-authored tsconfig:
|
|
4
|
+
* nothing is guaranteed, so every value is guarded at the file boundary.
|
|
5
|
+
*/
|
|
6
|
+
export type JsonValue = null | boolean | number | string | readonly JsonValue[] | JsonBlock;
|
|
7
|
+
export interface JsonBlock {
|
|
8
|
+
readonly [key: string]: JsonValue;
|
|
9
|
+
}
|
|
10
|
+
/** `Object(value) === value` holds for exactly the blocks and lists
|
|
11
|
+
* `JSON.parse` produces; the `[object Object]` tag separates the two. */
|
|
12
|
+
export declare function isJsonBlock(value: JsonValue | undefined): value is JsonBlock;
|
|
13
|
+
/** A JSON string, excluding the boxed `String` object, which no path join
|
|
14
|
+
* accepts. */
|
|
15
|
+
export declare function isJsonString(value: JsonValue | undefined): value is string;
|
|
2
16
|
/**
|
|
3
17
|
* The project's tsconfig path aliases as `buildPathAliasesJson` pairs; empty
|
|
4
18
|
* when no readable tsconfig, or no usable `paths`, exists.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tsconfig-paths.d.ts","sourceRoot":"","sources":["../../pipeline/tsconfig-paths.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"tsconfig-paths.d.ts","sourceRoot":"","sources":["../../pipeline/tsconfig-paths.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AA2DpD;;;GAGG;AACH,MAAM,MAAM,SAAS,GACjB,IAAI,GACJ,OAAO,GACP,MAAM,GACN,MAAM,GACN,SAAS,SAAS,EAAE,GACpB,SAAS,CAAC;AAEd,MAAM,WAAW,SAAS;IACxB,QAAQ,EAAE,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC;CACnC;AAED;0EAC0E;AAC1E,wBAAgB,WAAW,CAAC,KAAK,EAAE,SAAS,GAAG,SAAS,GAAG,KAAK,IAAI,SAAS,CAK5E;AAUD;eACe;AACf,wBAAgB,YAAY,CAAC,KAAK,EAAE,SAAS,GAAG,SAAS,GAAG,KAAK,IAAI,MAAM,CAK1E;AAiHD;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,MAAM,GAAG,aAAa,EAAE,CAyCvE"}
|