@animus-ui/extract 0.1.24 → 0.1.25
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 +6 -0
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/pipeline/analyze-project-args.d.ts +5 -1
- package/dist/pipeline/analyze-project-args.d.ts.map +1 -1
- package/dist/pipeline/discover-packages.d.ts.map +1 -1
- package/dist/pipeline/engine-adapter.d.ts +1 -1
- package/dist/pipeline/engine-adapter.d.ts.map +1 -1
- package/dist/pipeline/manifest-diagnostics.d.ts +2 -2
- package/dist/pipeline/manifest-diagnostics.d.ts.map +1 -1
- package/dist/pipeline/run-analysis.d.ts.map +1 -1
- package/dist/{pipeline-CAH9mxnK.cjs → pipeline-DOgKR4VZ.cjs} +36 -6
- package/dist/{pipeline-Bl20tbu_.mjs → pipeline-YGWpNr_Z.mjs} +36 -6
- package/dist/session.cjs +1 -1
- package/dist/session.mjs +1 -1
- package/package.json +4 -4
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -59,6 +59,12 @@ export interface EngineOptions {
|
|
|
59
59
|
* without `--`: authored component styles take the final names.
|
|
60
60
|
*/
|
|
61
61
|
generatedNamesJson?: string
|
|
62
|
+
/**
|
|
63
|
+
* The theme's property records (`name`, `syntax`, `registered`, …): a
|
|
64
|
+
* prop that writes only properties registered with a numeric syntax
|
|
65
|
+
* takes a number without a unit.
|
|
66
|
+
*/
|
|
67
|
+
propertyRecordsJson?: string
|
|
62
68
|
}
|
|
63
69
|
|
|
64
70
|
/** Probe identity: proves the binary loads and its oxc linkage parses. */
|
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-DOgKR4VZ.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;
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as discoverFiles, A as fileSideEffects, At as surfaceManifestDiagnostics, B as unresolvableIncludesMessage, Bt as substituteSheetAssets, C as resolveAssetFile, Ct as DiagnosticFailure, D as engineModuleParser, Dt as isDeletedSource, E as collectExternalPackageSources, Et as VOCABULARY_LEGACY_VERB, F as keepsKitSourceEffects, Ft as findAssetSpecifiers, G as KIT_DESCRIPTOR_FILE, Gt as assembleStylesheet, H as createSourceIdentity, Ht as contentHash, I as kitSourceModuleSideEffects, It as findSheetAssetSpecifiers, J as readKitDescriptor, K as buildKitDescriptor, Kt as stripLeadingLayerDeclaration, L as resolveAbsolutePathSpecifier, Lt as generatedModuleCode, M as firstOwners, Mt as unreadableSourceDiagnostic, N as importedKitDiagnostics, Nt as unresolvedParentName, O as excludeCollectedPackages, Ot as isUnresolvedParentDrop, P as isExcludedPackageRelativePath, Pt as vocabularyWitnessDiagnostics, Q as compareDiscoveryOrder, R as sourceKitDependencies, Rt as reportSurvivingAssetPlaceholders, S as enforceExternalTokenContracts, St as DIAGNOSTIC_LEVELS, T as createSourceCorpus, Tt as VOCABULARY_COLLISION, U as isPathWithinRoot, Ut as buildAnalyzeProjectArgs, V as walkPackageSources, W as sharesVolumeRoot, Wt as ANIMUS_LAYERS, Z as readTsconfigAliasPairs, _ as runProjectAnalysis, _t as adaptSvelteSource, a as kitPublicationFailures, at as STRUCTURAL_EXCLUDE, b as resolveLightningTargets, bt as isEngineTransformExtension, c as buildDynamicPropConfig, ct as resolveMode, d as applyPrefix, dt as assertNoRetiredEngineSelection, et as AnimusConfigError, f as serializeStaticCss, ft as createV2EngineApi, g as clearEngineCache, gt as projectExternalFileOwners, h as buildAnalysisInputs, ht as parseFilesJson, i as snapshotFilePlans, it as REPLACEABLE_DEFAULT_EXCLUDE, j as findPackageRoot, jt as systemLoadDiagnostics, k as extractSystemFilePackages, kt as noKitFilesDiagnostics, l as runStructuralSelfCheck, lt as resolveVerbosity, m as stableStringify, mt as isAdvisorySourceDiagnostic, n as diffFilePlans, nt as DEFAULT_EXCLUDE, o as assertNoErrorDiagnostics, ot as assertKnownOptionKeys, p as camelToKebab, pt as ingestSourceEntries, q as kitDescriptorDiagnostics, qt as validateLayerOrder, r as hashReplacementPlans, rt as DRIVER_NAMESPACES, s as buildSystemPropsModule, st as createExcludeMatcher, t as toWatchKeys, tt as CORE_OPTION_KEYS, u as loadSystemConfig, ut as RETIRED_ENGINE_MESSAGE, v as applyUnitFallback, vt as DEFAULT_EXTENSIONS, w as resolveThroughPathAliases, wt as INVALID_PROPERTY_REGISTRATION, x as buildPathAliasesJson, xt as preprocessMdx, y as postProcessCss, yt as ENGINE_TRANSFORM_EXTENSIONS, z as staleDistIncludesMessage, zt as substituteAssetPlaceholders } from "./pipeline-
|
|
1
|
+
import { $ as discoverFiles, A as fileSideEffects, At as surfaceManifestDiagnostics, B as unresolvableIncludesMessage, Bt as substituteSheetAssets, C as resolveAssetFile, Ct as DiagnosticFailure, D as engineModuleParser, Dt as isDeletedSource, E as collectExternalPackageSources, Et as VOCABULARY_LEGACY_VERB, F as keepsKitSourceEffects, Ft as findAssetSpecifiers, G as KIT_DESCRIPTOR_FILE, Gt as assembleStylesheet, H as createSourceIdentity, Ht as contentHash, I as kitSourceModuleSideEffects, It as findSheetAssetSpecifiers, J as readKitDescriptor, K as buildKitDescriptor, Kt as stripLeadingLayerDeclaration, L as resolveAbsolutePathSpecifier, Lt as generatedModuleCode, M as firstOwners, Mt as unreadableSourceDiagnostic, N as importedKitDiagnostics, Nt as unresolvedParentName, O as excludeCollectedPackages, Ot as isUnresolvedParentDrop, P as isExcludedPackageRelativePath, Pt as vocabularyWitnessDiagnostics, Q as compareDiscoveryOrder, R as sourceKitDependencies, Rt as reportSurvivingAssetPlaceholders, S as enforceExternalTokenContracts, St as DIAGNOSTIC_LEVELS, T as createSourceCorpus, Tt as VOCABULARY_COLLISION, U as isPathWithinRoot, Ut as buildAnalyzeProjectArgs, V as walkPackageSources, W as sharesVolumeRoot, Wt as ANIMUS_LAYERS, Z as readTsconfigAliasPairs, _ as runProjectAnalysis, _t as adaptSvelteSource, a as kitPublicationFailures, at as STRUCTURAL_EXCLUDE, b as resolveLightningTargets, bt as isEngineTransformExtension, c as buildDynamicPropConfig, ct as resolveMode, d as applyPrefix, dt as assertNoRetiredEngineSelection, et as AnimusConfigError, f as serializeStaticCss, ft as createV2EngineApi, g as clearEngineCache, gt as projectExternalFileOwners, h as buildAnalysisInputs, ht as parseFilesJson, i as snapshotFilePlans, it as REPLACEABLE_DEFAULT_EXCLUDE, j as findPackageRoot, jt as systemLoadDiagnostics, k as extractSystemFilePackages, kt as noKitFilesDiagnostics, l as runStructuralSelfCheck, lt as resolveVerbosity, m as stableStringify, mt as isAdvisorySourceDiagnostic, n as diffFilePlans, nt as DEFAULT_EXCLUDE, o as assertNoErrorDiagnostics, ot as assertKnownOptionKeys, p as camelToKebab, pt as ingestSourceEntries, q as kitDescriptorDiagnostics, qt as validateLayerOrder, r as hashReplacementPlans, rt as DRIVER_NAMESPACES, s as buildSystemPropsModule, st as createExcludeMatcher, t as toWatchKeys, tt as CORE_OPTION_KEYS, u as loadSystemConfig, ut as RETIRED_ENGINE_MESSAGE, v as applyUnitFallback, vt as DEFAULT_EXTENSIONS, w as resolveThroughPathAliases, wt as INVALID_PROPERTY_REGISTRATION, x as buildPathAliasesJson, xt as preprocessMdx, y as postProcessCss, yt as ENGINE_TRANSFORM_EXTENSIONS, z as staleDistIncludesMessage, zt as substituteAssetPlaceholders } from "./pipeline-YGWpNr_Z.mjs";
|
|
2
2
|
export { ANIMUS_LAYERS, AnimusConfigError, CORE_OPTION_KEYS, DEFAULT_EXCLUDE, DEFAULT_EXTENSIONS, DIAGNOSTIC_LEVELS, DRIVER_NAMESPACES, DiagnosticFailure, ENGINE_TRANSFORM_EXTENSIONS, INVALID_PROPERTY_REGISTRATION, KIT_DESCRIPTOR_FILE, REPLACEABLE_DEFAULT_EXCLUDE, RETIRED_ENGINE_MESSAGE, STRUCTURAL_EXCLUDE, VOCABULARY_COLLISION, VOCABULARY_LEGACY_VERB, adaptSvelteSource, applyPrefix, applyUnitFallback, assembleStylesheet, assertKnownOptionKeys, assertNoErrorDiagnostics, assertNoRetiredEngineSelection, buildAnalysisInputs, buildAnalyzeProjectArgs, buildDynamicPropConfig, buildKitDescriptor, buildPathAliasesJson, buildSystemPropsModule, camelToKebab, clearEngineCache, collectExternalPackageSources, compareDiscoveryOrder, contentHash, createExcludeMatcher, createSourceCorpus, createSourceIdentity, createV2EngineApi, diffFilePlans, discoverFiles, enforceExternalTokenContracts, engineModuleParser, excludeCollectedPackages, extractSystemFilePackages, fileSideEffects, findAssetSpecifiers, findPackageRoot, findSheetAssetSpecifiers, firstOwners, generatedModuleCode, hashReplacementPlans, importedKitDiagnostics, ingestSourceEntries, isAdvisorySourceDiagnostic, isDeletedSource, isEngineTransformExtension, isExcludedPackageRelativePath, isPathWithinRoot, isUnresolvedParentDrop, keepsKitSourceEffects, kitDescriptorDiagnostics, kitPublicationFailures, kitSourceModuleSideEffects, loadSystemConfig, noKitFilesDiagnostics, parseFilesJson, postProcessCss, preprocessMdx, projectExternalFileOwners, readKitDescriptor, readTsconfigAliasPairs, reportSurvivingAssetPlaceholders, resolveAbsolutePathSpecifier, resolveAssetFile, resolveLightningTargets, resolveMode, resolveThroughPathAliases, resolveVerbosity, runProjectAnalysis, runStructuralSelfCheck, serializeStaticCss, sharesVolumeRoot, snapshotFilePlans, sourceKitDependencies, stableStringify, staleDistIncludesMessage, stripLeadingLayerDeclaration, substituteAssetPlaceholders, substituteSheetAssets, surfaceManifestDiagnostics, systemLoadDiagnostics, toWatchKeys, unreadableSourceDiagnostic, unresolvableIncludesMessage, unresolvedParentName, validateLayerOrder, vocabularyWitnessDiagnostics, walkPackageSources };
|
|
@@ -21,7 +21,8 @@ export type AnalyzeProjectArgs = [
|
|
|
21
21
|
transformProvenanceJson: string | null,
|
|
22
22
|
declarationScalesJson?: string,
|
|
23
23
|
analysisContextJson?: string,
|
|
24
|
-
generatedNamesJson?: string
|
|
24
|
+
generatedNamesJson?: string,
|
|
25
|
+
propertyRecordsJson?: string
|
|
25
26
|
];
|
|
26
27
|
/** @internal */
|
|
27
28
|
export interface AnalyzeProjectInputs {
|
|
@@ -53,6 +54,9 @@ export interface AnalyzeProjectInputs {
|
|
|
53
54
|
/** Present only under a prefix: each generated name and its final name,
|
|
54
55
|
* renamed in authored component styles. */
|
|
55
56
|
generatedNamesJson?: string;
|
|
57
|
+
/** Present only for a theme with declared properties: a prop writing only
|
|
58
|
+
* ones registered with a numeric syntax takes a number without a unit. */
|
|
59
|
+
propertyRecordsJson?: string;
|
|
56
60
|
}
|
|
57
61
|
/** @internal */
|
|
58
62
|
export declare function buildAnalyzeProjectArgs(inputs: AnalyzeProjectInputs): AnalyzeProjectArgs;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"analyze-project-args.d.ts","sourceRoot":"","sources":["../../pipeline/analyze-project-args.ts"],"names":[],"mappings":"AAAA,gBAAgB;AAChB,MAAM,MAAM,kBAAkB,GAAG;IAC/B,SAAS,EAAE,MAAM;IACjB,UAAU,EAAE,MAAM;IAClB,eAAe,EAAE,MAAM;IACvB,kBAAkB,EAAE,MAAM,GAAG,IAAI;IACjC,cAAc,EAAE,MAAM;IACtB,iBAAiB,EAAE,MAAM;IACzB,qBAAqB,EAAE,MAAM;IAC7B,OAAO,EAAE,OAAO;IAChB,iBAAiB,EAAE,MAAM,GAAG,IAAI;IAChC,m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,EAAE,sBAAsB,EAAE,GACjC,MAAM,GAAG,IAAI,CAMf;AAED,oDAAoD;AACpD,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,SAAS,iBAAiB,EAAE,CAAC;IACtC,OAAO,EAAE,SAAS,iBAAiB,EAAE,CAAC;IACtC;4EACwE;IACxE,wBAAwB,CAAC,EAAE,aAAa,CAAC,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;CACrE;AAED,oEAAoE;AACpE,MAAM,MAAM,YAAY,GAAG,CACzB,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,KACT,YAAY,GAAG,IAAI,CAAC;AAEzB;;mCAEmC;AACnC,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,IAAI,CAAC,SAAS,EAAE,cAAc,CAAC,GACtC,YAAY,GAAG,SAAS,CAoB1B;AAID;6EAC6E;AAC7E,MAAM,MAAM,eAAe,GAAG,CAC5B,SAAS,EAAE,MAAM,KACd,MAAM,GAAG,IAAI,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;AA4T5C;;kDAEkD;AAClD,wBAAgB,0BAA0B,CACxC,cAAc,EAAE,MAAM,EACtB,MAAM,EAAE,YAAY,GACnB,kBAAkB,GAAG,IAAI,CAa3B;AAUD,wBAAsB,yBAAyB,CAC7C,cAAc,EAAE,MAAM,EACtB,WAAW,CAAC,EAAE,YAAY,EAC1B,MAAM,CAAC,EAAE,CAAC,UAAU,EAAE,kBAAkB,KAAK,IAAI,EACjD,cAAc,CAAC,EAAE,eAAe,GAC/B,OAAO,CAAC,MAAM,EAAE,CAAC,CAuTnB"}
|
|
@@ -24,7 +24,7 @@ export interface EngineApi {
|
|
|
24
24
|
moduleSpecifiers?: (filesJson: string) => string;
|
|
25
25
|
/** The engine's code-to-severity table, as JSON. */
|
|
26
26
|
diagnosticCodes?: () => string;
|
|
27
|
-
analyzeProject: (filesJson: string, scalesJson: string, variableMapJson: string, contextualVarsJson: string | null, propConfigJson: string, groupRegistryJson: string, packageResolutionJson: string, devMode: boolean, emitterConfigJson: string | null, selectorAliasesJson: string | null, selectorOrderJson: string | null, globalStyleBlocksJson: string | null, pathAliasesJson: string | null, keyframesJson: string | null, staticCssJson: string | null, conditionAliasesJson: string | null, externalDirsJson: string | null, transformSourcesJson: string | null, transformProvenanceJson?: string | null, declarationScalesJson?: string, analysisContextJson?: string, generatedNamesJson?: string) => string;
|
|
27
|
+
analyzeProject: (filesJson: string, scalesJson: string, variableMapJson: string, contextualVarsJson: string | null, propConfigJson: string, groupRegistryJson: string, packageResolutionJson: string, devMode: boolean, emitterConfigJson: string | null, selectorAliasesJson: string | null, selectorOrderJson: string | null, globalStyleBlocksJson: string | null, pathAliasesJson: string | null, keyframesJson: string | null, staticCssJson: string | null, conditionAliasesJson: string | null, externalDirsJson: string | null, transformSourcesJson: string | null, transformProvenanceJson?: string | null, declarationScalesJson?: string, analysisContextJson?: string, generatedNamesJson?: string, propertyRecordsJson?: string) => string;
|
|
28
28
|
transformFile: (source: string, path: string, manifest: string) => TransformFileResult;
|
|
29
29
|
clearAnalysisCache: () => void;
|
|
30
30
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"engine-adapter.d.ts","sourceRoot":"","sources":["../../pipeline/engine-adapter.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,8EAA8E;AAC9E,MAAM,WAAW,eAAe;IAC9B,OAAO,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAAC;IACnC,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;IACpC,UAAU,IAAI,IAAI,CAAC;CACpB;AAED,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,OAAO,CAAC;CACxB;AAED;;;GAGG;AACH,MAAM,WAAW,SAAS;IAGxB,gBAAgB,EAAE,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,GAAG,CAAC;IAC9C,yEAAy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EAAE,MAAM,KACzB,MAAM,CAAC;IACZ,aAAa,EAAE,CACb,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM,KACb,mBAAmB,CAAC;IACzB,kBAAkB,EAAE,MAAM,IAAI,CAAC;CAChC;AAED;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC,SAAS,IAAI,eAAe,GAAG,IAAI,CAAC;IACpC,SAAS,CAAC,MAAM,EAAE,eAAe,GAAG,IAAI,GAAG,IAAI,CAAC;IAChD,cAAc,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC;IAC7C,cAAc,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1D,cAAc,IAAI,OAAO,CAAC;IAC1B,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAAC;CACtC;AAED,4EAA4E;AAE5E,KAAK,kBAAkB,GAAG,GAAG,CAAC;AAgC9B,MAAM,WAAW,mBAAmB;IAClC,yEAAyE;IACzE,KAAK,EAAE,MAAM,CAAC;IACd,yEAAyE;IACzE,IAAI,IAAI,OAAO,CAAC;IAChB,2EAA2E;IAC3E,gBAAgB,IAAI,kBAAkB,CAAC;IACvC,qEAAqE;IACrE,KAAK,EAAE,kBAAkB,CAAC;IAC1B;6EACyE;IACzE,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC;kFAC8E;IAC9E,kBAAkB,CAAC,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAAC;CACnD;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,mBAAmB,GAAG,MAAM,SAAS,CAiI5E"}
|
|
@@ -80,8 +80,8 @@ export declare function collectSelectorAliasDiagnostics(selectorAliasesJson: str
|
|
|
80
80
|
export declare const UNREADABLE_SOURCE_FILE = "animus.ingestion.unreadable-source-file";
|
|
81
81
|
/** A kit the system extends resolved, yet discovery found none of its files. */
|
|
82
82
|
export declare const NO_KIT_FILES = "animus.discovery.no-kit-files";
|
|
83
|
-
/** A kit with no `animus` export condition
|
|
84
|
-
* from `src/`. */
|
|
83
|
+
/** A kit with no `animus` export condition whose exports do not all target
|
|
84
|
+
* TypeScript source: discovery guesses its source from `src/`. */
|
|
85
85
|
export declare const KIT_WITHOUT_SOURCE_CONDITION = "animus.discovery.kit-without-source-condition";
|
|
86
86
|
/** A kit's `animus` export condition names a file that is missing or outside
|
|
87
87
|
* its package, so that entry is not read from source. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manifest-diagnostics.d.ts","sourceRoot":"","sources":["../../pipeline/manifest-diagnostics.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAClE,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;IAClB,8EAA8E;IAC9E,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,mEAAmE;IACnE,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AA+BF;qDACqD;AACrD,wBAAgB,QAAQ,CAAC,UAAU,EAAE,kBAAkB,GAAG,MAAM,CAE/D;AAED;+CAC+C;AAC/C,eAAO,MAAM,4BAA4B,wCACF,CAAC;AAOxC,KAAK,iBAAiB,GAAG,IAAI,CAAC,kBAAkB,EAAE,SAAS,CAAC,CAAC;AAE7D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,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,sEAAsE;IACtE,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,uCAAuC;IACvC,WAAW,CAAC,EAAE,gBAAgB,CAAC;IAC/B,4EAA4E;IAC5E,YAAY,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CAC1C,GACA,qBAAqB,CAiEvB;AAED;;;GAGG;AAEH,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,GAAG,IAAI,CAO3D"}
|
|
@@ -115,7 +115,8 @@ function buildAnalyzeProjectArgs(inputs) {
|
|
|
115
115
|
const tail = [
|
|
116
116
|
inputs.declarationScalesJson,
|
|
117
117
|
inputs.analysisContextJson,
|
|
118
|
-
inputs.generatedNamesJson
|
|
118
|
+
inputs.generatedNamesJson,
|
|
119
|
+
inputs.propertyRecordsJson
|
|
119
120
|
];
|
|
120
121
|
const last = tail.findLastIndex((slot) => slot !== void 0 && slot !== "");
|
|
121
122
|
for (const slot of tail.slice(0, last + 1)) args.push(slot || void 0);
|
|
@@ -441,8 +442,8 @@ function collectSelectorAliasDiagnostics(selectorAliasesJson) {
|
|
|
441
442
|
const UNREADABLE_SOURCE_FILE = "animus.ingestion.unreadable-source-file";
|
|
442
443
|
/** A kit the system extends resolved, yet discovery found none of its files. */
|
|
443
444
|
const NO_KIT_FILES = "animus.discovery.no-kit-files";
|
|
444
|
-
/** A kit with no `animus` export condition
|
|
445
|
-
* from `src/`. */
|
|
445
|
+
/** A kit with no `animus` export condition whose exports do not all target
|
|
446
|
+
* TypeScript source: discovery guesses its source from `src/`. */
|
|
446
447
|
const KIT_WITHOUT_SOURCE_CONDITION = "animus.discovery.kit-without-source-condition";
|
|
447
448
|
/** A kit's `animus` export condition names a file that is missing or outside
|
|
448
449
|
* its package, so that entry is not read from source. */
|
|
@@ -1700,7 +1701,7 @@ function createV2EngineApi(deps) {
|
|
|
1700
1701
|
extractFacts: (filesJson) => native.extractFacts(filesJson),
|
|
1701
1702
|
moduleSpecifiers: (filesJson) => native.moduleSpecifiers(filesJson),
|
|
1702
1703
|
diagnosticCodes: () => native.diagnosticCodes(),
|
|
1703
|
-
analyzeProject: (filesJsonRaw, scalesJson, variableMapJson, contextualVarsJson, propConfigJson, groupRegistryJson, packageResolutionJson, devMode, emitterConfigJson, selectorAliasesJson, _selectorOrderJson, globalStyleBlocksJson, pathAliasesJson, keyframesJson, staticCssJson, conditionAliasesJson, externalDirsJson, transformSourcesJson, transformProvenanceJson, declarationScalesJson, analysisContextJson, generatedNamesJson) => {
|
|
1704
|
+
analyzeProject: (filesJsonRaw, scalesJson, variableMapJson, contextualVarsJson, propConfigJson, groupRegistryJson, packageResolutionJson, devMode, emitterConfigJson, selectorAliasesJson, _selectorOrderJson, globalStyleBlocksJson, pathAliasesJson, keyframesJson, staticCssJson, conditionAliasesJson, externalDirsJson, transformSourcesJson, transformProvenanceJson, declarationScalesJson, analysisContextJson, generatedNamesJson, propertyRecordsJson) => {
|
|
1704
1705
|
const filesJson = deps.rehydrateFilesJson ? deps.rehydrateFilesJson(filesJsonRaw) : filesJsonRaw;
|
|
1705
1706
|
const sent = /* @__PURE__ */ new Map();
|
|
1706
1707
|
for (const entry of parseFilesJson(filesJson, label)) sent.set(entry.path, entry.source);
|
|
@@ -1729,6 +1730,7 @@ function createV2EngineApi(deps) {
|
|
|
1729
1730
|
declarationScalesJson,
|
|
1730
1731
|
analysisContextJson,
|
|
1731
1732
|
generatedNamesJson,
|
|
1733
|
+
propertyRecordsJson,
|
|
1732
1734
|
devMode
|
|
1733
1735
|
};
|
|
1734
1736
|
const engine = new native.ExtractEngine(config);
|
|
@@ -2550,9 +2552,36 @@ function readKitSourceCondition(pkgRoot) {
|
|
|
2550
2552
|
else condition.invalid.push([subpath, target]);
|
|
2551
2553
|
}
|
|
2552
2554
|
if (condition.entries.length === 0 && condition.invalid.length === 0) return null;
|
|
2553
|
-
condition.root = condition.entries
|
|
2555
|
+
condition.root = sourceRoot(condition.entries);
|
|
2554
2556
|
return condition;
|
|
2555
2557
|
}
|
|
2558
|
+
/** The deepest directory holding every entry's file. */
|
|
2559
|
+
function sourceRoot(entries) {
|
|
2560
|
+
return entries.reduce((root, [, file]) => root === null ? (0, path.dirname)(file) : commonDirectory(root, (0, path.dirname)(file)), null);
|
|
2561
|
+
}
|
|
2562
|
+
/** A TypeScript source file; compiled output and declarations are not. */
|
|
2563
|
+
const TS_SOURCE = /(?<!\.d)\.[cm]?tsx?$/;
|
|
2564
|
+
/** A kit with no source condition whose every exact `exports` entry already
|
|
2565
|
+
* targets TypeScript source in the package under `import` or `default`:
|
|
2566
|
+
* those targets are its source, as the condition would name them. Null
|
|
2567
|
+
* when any exact entry has no such target, such as one only `require` or
|
|
2568
|
+
* `types` reaches, or there is no exact entry. */
|
|
2569
|
+
function sourceExportsCondition(pkgRoot) {
|
|
2570
|
+
const entries = [];
|
|
2571
|
+
for (const [subpath, value] of exportsSubpaths(readPackageManifest(pkgRoot))) {
|
|
2572
|
+
if (subpath.includes("*")) continue;
|
|
2573
|
+
const target = exportTarget(value);
|
|
2574
|
+
const file = target === null ? null : (0, path.resolve)(pkgRoot, target);
|
|
2575
|
+
if (file === null || !TS_SOURCE.test(file) || !isPathWithinRoot(pkgRoot, file) || !isFile$1(file)) return null;
|
|
2576
|
+
entries.push([subpath, file]);
|
|
2577
|
+
}
|
|
2578
|
+
if (entries.length === 0) return null;
|
|
2579
|
+
return {
|
|
2580
|
+
entries,
|
|
2581
|
+
invalid: [],
|
|
2582
|
+
root: sourceRoot(entries)
|
|
2583
|
+
};
|
|
2584
|
+
}
|
|
2556
2585
|
function commonDirectory(a, b) {
|
|
2557
2586
|
let dir = a;
|
|
2558
2587
|
while (!isPathWithinRoot(dir, b)) dir = (0, path.dirname)(dir);
|
|
@@ -2800,7 +2829,7 @@ async function collectExternalPackageSources(opts) {
|
|
|
2800
2829
|
const resolvedRoot = absEntry ? findPackageRoot(absEntry) : null;
|
|
2801
2830
|
const locatedRoot = packageName && locatePackageRoot(packageName, rootDir);
|
|
2802
2831
|
const pkgRoot = resolvedRoot && (!locatedRoot || isPackageNamed(resolvedRoot, packageName) || realPath(resolvedRoot) === locatedRoot) ? resolvedRoot : locatedRoot || resolvedRoot;
|
|
2803
|
-
const condition = packageName && pkgRoot ? readKitSourceCondition(pkgRoot) : null;
|
|
2832
|
+
const condition = packageName && pkgRoot ? readKitSourceCondition(pkgRoot) ?? sourceExportsCondition(pkgRoot) : null;
|
|
2804
2833
|
const entryKey = packageName && `.${specifier.slice(packageName.length)}`;
|
|
2805
2834
|
absEntry ??= condition?.entries.find(([entry]) => entry === entryKey)?.[1] ?? null;
|
|
2806
2835
|
if (!absEntry || !pkgRoot) {
|
|
@@ -4346,6 +4375,7 @@ function buildAnalysisInputs(opts) {
|
|
|
4346
4375
|
};
|
|
4347
4376
|
if (opts.system.declarationScalesJson) inputs.declarationScalesJson = opts.system.declarationScalesJson;
|
|
4348
4377
|
if (opts.system.generatedNamesJson) inputs.generatedNamesJson = opts.system.generatedNamesJson;
|
|
4378
|
+
if (opts.system.propertyRecordsJson) inputs.propertyRecordsJson = opts.system.propertyRecordsJson;
|
|
4349
4379
|
const context = opts.analysisContext;
|
|
4350
4380
|
if (context?.skippedSources?.length || context?.unbundledComputedImports || context?.packageDirs?.length) inputs.analysisContextJson = JSON.stringify({
|
|
4351
4381
|
skippedSources: context.skippedSources ?? [],
|
|
@@ -94,7 +94,8 @@ function buildAnalyzeProjectArgs(inputs) {
|
|
|
94
94
|
const tail = [
|
|
95
95
|
inputs.declarationScalesJson,
|
|
96
96
|
inputs.analysisContextJson,
|
|
97
|
-
inputs.generatedNamesJson
|
|
97
|
+
inputs.generatedNamesJson,
|
|
98
|
+
inputs.propertyRecordsJson
|
|
98
99
|
];
|
|
99
100
|
const last = tail.findLastIndex((slot) => slot !== void 0 && slot !== "");
|
|
100
101
|
for (const slot of tail.slice(0, last + 1)) args.push(slot || void 0);
|
|
@@ -420,8 +421,8 @@ function collectSelectorAliasDiagnostics(selectorAliasesJson) {
|
|
|
420
421
|
const UNREADABLE_SOURCE_FILE = "animus.ingestion.unreadable-source-file";
|
|
421
422
|
/** A kit the system extends resolved, yet discovery found none of its files. */
|
|
422
423
|
const NO_KIT_FILES = "animus.discovery.no-kit-files";
|
|
423
|
-
/** A kit with no `animus` export condition
|
|
424
|
-
* from `src/`. */
|
|
424
|
+
/** A kit with no `animus` export condition whose exports do not all target
|
|
425
|
+
* TypeScript source: discovery guesses its source from `src/`. */
|
|
425
426
|
const KIT_WITHOUT_SOURCE_CONDITION = "animus.discovery.kit-without-source-condition";
|
|
426
427
|
/** A kit's `animus` export condition names a file that is missing or outside
|
|
427
428
|
* its package, so that entry is not read from source. */
|
|
@@ -1679,7 +1680,7 @@ function createV2EngineApi(deps) {
|
|
|
1679
1680
|
extractFacts: (filesJson) => native.extractFacts(filesJson),
|
|
1680
1681
|
moduleSpecifiers: (filesJson) => native.moduleSpecifiers(filesJson),
|
|
1681
1682
|
diagnosticCodes: () => native.diagnosticCodes(),
|
|
1682
|
-
analyzeProject: (filesJsonRaw, scalesJson, variableMapJson, contextualVarsJson, propConfigJson, groupRegistryJson, packageResolutionJson, devMode, emitterConfigJson, selectorAliasesJson, _selectorOrderJson, globalStyleBlocksJson, pathAliasesJson, keyframesJson, staticCssJson, conditionAliasesJson, externalDirsJson, transformSourcesJson, transformProvenanceJson, declarationScalesJson, analysisContextJson, generatedNamesJson) => {
|
|
1683
|
+
analyzeProject: (filesJsonRaw, scalesJson, variableMapJson, contextualVarsJson, propConfigJson, groupRegistryJson, packageResolutionJson, devMode, emitterConfigJson, selectorAliasesJson, _selectorOrderJson, globalStyleBlocksJson, pathAliasesJson, keyframesJson, staticCssJson, conditionAliasesJson, externalDirsJson, transformSourcesJson, transformProvenanceJson, declarationScalesJson, analysisContextJson, generatedNamesJson, propertyRecordsJson) => {
|
|
1683
1684
|
const filesJson = deps.rehydrateFilesJson ? deps.rehydrateFilesJson(filesJsonRaw) : filesJsonRaw;
|
|
1684
1685
|
const sent = /* @__PURE__ */ new Map();
|
|
1685
1686
|
for (const entry of parseFilesJson(filesJson, label)) sent.set(entry.path, entry.source);
|
|
@@ -1708,6 +1709,7 @@ function createV2EngineApi(deps) {
|
|
|
1708
1709
|
declarationScalesJson,
|
|
1709
1710
|
analysisContextJson,
|
|
1710
1711
|
generatedNamesJson,
|
|
1712
|
+
propertyRecordsJson,
|
|
1711
1713
|
devMode
|
|
1712
1714
|
};
|
|
1713
1715
|
const engine = new native.ExtractEngine(config);
|
|
@@ -2529,9 +2531,36 @@ function readKitSourceCondition(pkgRoot) {
|
|
|
2529
2531
|
else condition.invalid.push([subpath, target]);
|
|
2530
2532
|
}
|
|
2531
2533
|
if (condition.entries.length === 0 && condition.invalid.length === 0) return null;
|
|
2532
|
-
condition.root = condition.entries
|
|
2534
|
+
condition.root = sourceRoot(condition.entries);
|
|
2533
2535
|
return condition;
|
|
2534
2536
|
}
|
|
2537
|
+
/** The deepest directory holding every entry's file. */
|
|
2538
|
+
function sourceRoot(entries) {
|
|
2539
|
+
return entries.reduce((root, [, file]) => root === null ? dirname$1(file) : commonDirectory(root, dirname$1(file)), null);
|
|
2540
|
+
}
|
|
2541
|
+
/** A TypeScript source file; compiled output and declarations are not. */
|
|
2542
|
+
const TS_SOURCE = /(?<!\.d)\.[cm]?tsx?$/;
|
|
2543
|
+
/** A kit with no source condition whose every exact `exports` entry already
|
|
2544
|
+
* targets TypeScript source in the package under `import` or `default`:
|
|
2545
|
+
* those targets are its source, as the condition would name them. Null
|
|
2546
|
+
* when any exact entry has no such target, such as one only `require` or
|
|
2547
|
+
* `types` reaches, or there is no exact entry. */
|
|
2548
|
+
function sourceExportsCondition(pkgRoot) {
|
|
2549
|
+
const entries = [];
|
|
2550
|
+
for (const [subpath, value] of exportsSubpaths(readPackageManifest(pkgRoot))) {
|
|
2551
|
+
if (subpath.includes("*")) continue;
|
|
2552
|
+
const target = exportTarget(value);
|
|
2553
|
+
const file = target === null ? null : resolve$1(pkgRoot, target);
|
|
2554
|
+
if (file === null || !TS_SOURCE.test(file) || !isPathWithinRoot(pkgRoot, file) || !isFile$1(file)) return null;
|
|
2555
|
+
entries.push([subpath, file]);
|
|
2556
|
+
}
|
|
2557
|
+
if (entries.length === 0) return null;
|
|
2558
|
+
return {
|
|
2559
|
+
entries,
|
|
2560
|
+
invalid: [],
|
|
2561
|
+
root: sourceRoot(entries)
|
|
2562
|
+
};
|
|
2563
|
+
}
|
|
2535
2564
|
function commonDirectory(a, b) {
|
|
2536
2565
|
let dir = a;
|
|
2537
2566
|
while (!isPathWithinRoot(dir, b)) dir = dirname$1(dir);
|
|
@@ -2779,7 +2808,7 @@ async function collectExternalPackageSources(opts) {
|
|
|
2779
2808
|
const resolvedRoot = absEntry ? findPackageRoot(absEntry) : null;
|
|
2780
2809
|
const locatedRoot = packageName && locatePackageRoot(packageName, rootDir);
|
|
2781
2810
|
const pkgRoot = resolvedRoot && (!locatedRoot || isPackageNamed(resolvedRoot, packageName) || realPath(resolvedRoot) === locatedRoot) ? resolvedRoot : locatedRoot || resolvedRoot;
|
|
2782
|
-
const condition = packageName && pkgRoot ? readKitSourceCondition(pkgRoot) : null;
|
|
2811
|
+
const condition = packageName && pkgRoot ? readKitSourceCondition(pkgRoot) ?? sourceExportsCondition(pkgRoot) : null;
|
|
2783
2812
|
const entryKey = packageName && `.${specifier.slice(packageName.length)}`;
|
|
2784
2813
|
absEntry ??= condition?.entries.find(([entry]) => entry === entryKey)?.[1] ?? null;
|
|
2785
2814
|
if (!absEntry || !pkgRoot) {
|
|
@@ -4325,6 +4354,7 @@ function buildAnalysisInputs(opts) {
|
|
|
4325
4354
|
};
|
|
4326
4355
|
if (opts.system.declarationScalesJson) inputs.declarationScalesJson = opts.system.declarationScalesJson;
|
|
4327
4356
|
if (opts.system.generatedNamesJson) inputs.generatedNamesJson = opts.system.generatedNamesJson;
|
|
4357
|
+
if (opts.system.propertyRecordsJson) inputs.propertyRecordsJson = opts.system.propertyRecordsJson;
|
|
4328
4358
|
const context = opts.analysisContext;
|
|
4329
4359
|
if (context?.skippedSources?.length || context?.unbundledComputedImports || context?.packageDirs?.length) inputs.analysisContextJson = JSON.stringify({
|
|
4330
4360
|
skippedSources: context.skippedSources ?? [],
|
package/dist/session.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-DOgKR4VZ.cjs");
|
|
3
3
|
let crypto = require("crypto");
|
|
4
4
|
let fs = require("fs");
|
|
5
5
|
let path = require("path");
|
package/dist/session.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as discoverFiles, At as surfaceManifestDiagnostics, B as unresolvableIncludesMessage, Bt as substituteSheetAssets, C as resolveAssetFile, D as engineModuleParser, Dt as isDeletedSource, E as collectExternalPackageSources, Gt as assembleStylesheet, H as createSourceIdentity, Ht as contentHash, It as findSheetAssetSpecifiers, Jt as __require, Lt as generatedModuleCode, M as firstOwners, Mt as unreadableSourceDiagnostic, N as importedKitDiagnostics, O as excludeCollectedPackages, P as isExcludedPackageRelativePath, Rt as reportSurvivingAssetPlaceholders, S as enforceExternalTokenContracts, T as createSourceCorpus, U as isPathWithinRoot, V as walkPackageSources, Vt as parseInternalWire, W as sharesVolumeRoot, X as isJsonString, Y as isJsonBlock, _ as runProjectAnalysis, b as resolveLightningTargets, ct as resolveMode, f as serializeStaticCss, ft as createV2EngineApi, g as clearEngineCache, gt as projectExternalFileOwners, i as snapshotFilePlans, j as findPackageRoot, k as extractSystemFilePackages, lt as resolveVerbosity, r as hashReplacementPlans, s as buildSystemPropsModule, st as createExcludeMatcher, t as toWatchKeys, u as loadSystemConfig, vt as DEFAULT_EXTENSIONS, y as postProcessCss, z as staleDistIncludesMessage } from "./pipeline-
|
|
1
|
+
import { $ as discoverFiles, At as surfaceManifestDiagnostics, B as unresolvableIncludesMessage, Bt as substituteSheetAssets, C as resolveAssetFile, D as engineModuleParser, Dt as isDeletedSource, E as collectExternalPackageSources, Gt as assembleStylesheet, H as createSourceIdentity, Ht as contentHash, It as findSheetAssetSpecifiers, Jt as __require, Lt as generatedModuleCode, M as firstOwners, Mt as unreadableSourceDiagnostic, N as importedKitDiagnostics, O as excludeCollectedPackages, P as isExcludedPackageRelativePath, Rt as reportSurvivingAssetPlaceholders, S as enforceExternalTokenContracts, T as createSourceCorpus, U as isPathWithinRoot, V as walkPackageSources, Vt as parseInternalWire, W as sharesVolumeRoot, X as isJsonString, Y as isJsonBlock, _ as runProjectAnalysis, b as resolveLightningTargets, ct as resolveMode, f as serializeStaticCss, ft as createV2EngineApi, g as clearEngineCache, gt as projectExternalFileOwners, i as snapshotFilePlans, j as findPackageRoot, k as extractSystemFilePackages, lt as resolveVerbosity, r as hashReplacementPlans, s as buildSystemPropsModule, st as createExcludeMatcher, t as toWatchKeys, u as loadSystemConfig, vt as DEFAULT_EXTENSIONS, y as postProcessCss, z as staleDistIncludesMessage } from "./pipeline-YGWpNr_Z.mjs";
|
|
2
2
|
import { randomUUID } from "crypto";
|
|
3
3
|
import { existsSync, mkdirSync, readFileSync, readdirSync, realpathSync, renameSync, rmSync, statSync, unlinkSync, watch, writeFileSync } from "fs";
|
|
4
4
|
import { basename, dirname, extname, isAbsolute, join, relative, resolve } from "path";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@animus-ui/extract",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.25",
|
|
4
4
|
"description": "Animus static CSS extraction pipeline (Rust/NAPI)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"animus",
|
|
@@ -55,13 +55,13 @@
|
|
|
55
55
|
"build:v2:debug": "cd crates/extract-v2 && bunx napi build --platform --no-js"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@animus-ui/properties": "0.1.
|
|
58
|
+
"@animus-ui/properties": "0.1.25",
|
|
59
59
|
"browserslist": "^4.28.8",
|
|
60
60
|
"lightningcss": "^1.33.0"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@animus-ui/assertions": "0.1.
|
|
64
|
-
"@animus-ui/system": "0.1.
|
|
63
|
+
"@animus-ui/assertions": "0.1.25",
|
|
64
|
+
"@animus-ui/system": "0.1.25",
|
|
65
65
|
"@mdx-js/mdx": "3.1.1",
|
|
66
66
|
"@napi-rs/cli": "^3.10.5",
|
|
67
67
|
"svelte": "5.57.0"
|